package com.sky.controller.user;


import com.sky.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class JTController {





    @GetMapping("/data")
    public Result data() {
        Map<String, Object> data = new HashMap<>();
        data.put("id", 1);
        data.put("time", "2024-05-01 08:00:00");
        data.put("location", "路口A");
        data.put("traffic", 120);
        return  Result.success(data);
    }
}
